import { defineStore } from "pinia";
import { ref } from "vue";

//第一个参数是唯一storeId,setupStore风格
const useTabbarStore = defineStore("tabbar", () => {
    //ref包装定义的就是 state
    const isTabbarShow = ref<boolean>(true);

    const changeTabbar = (value: boolean) => {
        isTabbarShow.value = value;
    };

    return {
        isTabbarShow,
        changeTabbar,
    };
});

export default useTabbarStore;
